package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.logging.Level;

/**
 * 用户实体类
 */
@TableName("t_user")
public class UserBean {
    //用户的id
    @TableId(value = "pk_userId",type = IdType.AUTO)
    private  Integer id;
    //用户的名字
    @TableField("u_name")
    private  String name;
    //用户的密码
    @TableField("u_pwd")
    private  String pwd;
    //用户的等级
    @TableField("u_level")
    private  String level;

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", level='" + level + '\'' +
                "}\n";
    }

    public UserBean(String name, String pwd, String level) {
        this.name = name;
        this.pwd = pwd;
        this.level = level;
    }

    public UserBean() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }
}
